<% form_tag url_for(:action=>"save_assignments") do -%>
  <fieldset class="column-right2" id="agrupacion">
    <legend>Miembros de la colleci&oacute;n</legend>

    <br />
    <table frame="border"class="table-general" id="list_selected" style="font-size: 9px;">
      <thead>
        <tr>
          <th>Código</th>
          <th>Nombre de Patrimonio</th>
          <th>Acci&oacute;n</th>
        </tr>
      </thead>

      <tbody>
      <% @assignments_list.each do |cultural_heritage_cultural_heritage| %>
        <tr>
          <td><%= cultural_heritage_cultural_heritage.nationalRegistrationCode %></td>
          <td><%= cultural_heritage_cultural_heritage.name %></td>
          <td>
            <a href="#" cultural-heritage-id='<%= cultural_heritage_cultural_heritage.id %>' class="js_unlink_cultural_heritage" title="Desasociar">
              <img border="0" title="Desasociar" src="/images/navi/0045-badge-circle-direction-left-16-ns.png" alt="Desasociar" />
            </a>
            <input type="hidden" name="cultural_heritage_selected[]" value='<%= cultural_heritage_cultural_heritage.id %>'/>
          </td>
        </tr>
      <% end %>
      </tbody>
    </table>

    <%= hidden_field_tag "collection_id",@cultural_heritage_collection.id  %>
    
    <input type="submit" value="Guardar" class="column-right1" />
    <% end %>
  </fieldset>
<br></br>
